package com.beerandjesus.sportofkings.handicapper.model;

public class RaceAnalysisResultVOImpl implements RaceAnalysisResultVO {

	private RaceType raceType;
	private String trackCode;
	private String raceNumber;
	private String raceDate;
	private String raceName;
	private String purse;
	private String claimingPrice;
	private String distance;
	private String speedPar;
	private String postTimes;
	private TrackSurface surface;
	private int fieldCount;
	private ResultsTable resultsTable;
	
	public RaceType getRaceType() {
		return raceType;
	}
	public void setRaceType(RaceType raceType) {
		this.raceType = raceType;
	}
	public String getTrackCode() {
		return trackCode;
	}
	public void setTrackCode(String trackCode) {
		this.trackCode = trackCode;
	}
	public String getRaceNumber() {
		return raceNumber;
	}
	public void setRaceNumber(String raceNumber) {
		this.raceNumber = raceNumber;
	}
	public String getRaceDate() {
		return raceDate;
	}
	public void setRaceDate(String raceDate) {
		this.raceDate = raceDate;
	}
	public String getRaceName() {
		return raceName;
	}
	public void setRaceName(String raceName) {
		this.raceName = raceName;
	}
	public String getPurse() {
		return purse;
	}
	public void setPurse(String purse) {
		this.purse = purse;
	}
	public String getClaimingPrice() {
		return claimingPrice;
	}
	public void setClaimingPrice(String claimingPrice) {
		this.claimingPrice = claimingPrice;
	}
	public String getDistance() {
		return distance;
	}
	public void setDistance(String distance) {
		this.distance = distance;
	}
	public String getSpeedPar() {
		return speedPar;
	}
	public void setSpeedPar(String speedPar) {
		this.speedPar = speedPar;
	}
	public String getPostTimes() {
		return postTimes;
	}
	public void setPostTimes(String postTimes) {
		this.postTimes = postTimes;
	}
	public TrackSurface getSurface() {
		return surface;
	}
	public void setSurface(TrackSurface surface) {
		this.surface = surface;
	}
	public int getFieldCount() {
		return fieldCount;
	}
	public void setFieldCount(int fieldCount) {
		this.fieldCount = fieldCount;
	}
	public ResultsTable getResultsTable() {
		return resultsTable;
	}
	public void setResultsTable(ResultsTable resultsTable) {
		this.resultsTable = resultsTable;
	}

    public String getOutputSimpleFormat() {
        StringBuffer sb = new StringBuffer();
        sb.append(getTrackCode()).append(" #").append(getRaceNumber()).append(": ").append(getRaceName()).append("\n");
        sb.append("Purse: ").append(getPurse()).append("; Claiming: ").append(getClaimingPrice()).append("\n");
        sb.append("Surface: ").append(getSurface().getDescription()).append("; Par: ").append(getSpeedPar()).append("\n");
        sb.append(getDistance()).append("\n\n");
        sb.append(getResultsTable().toStringByType()).append("\n\n");
        return sb.toString();
    }



}
